7f87b762ecc618c3355c3c8992669ed1346daa9f,src/main/java/eu/mihosoft/jcsg/playground/Main.java,Main,cutPolygonWithPlane,#Polygon#Plane#number[]#List#List#List#,426

Before Change


            }

            if (ti != tj && (ti != 0 && tj != 0)/*spanning*/) {
                double t = (cutPlane.getDist() - cutPlane.normal.dot(vi.pos))
                        / cutPlane.normal.dot(vj.pos.minus(vi.pos));
                Vertex v = vi.interpolate(vj, t);
                frontPolygon.add(v.pos);
                backPolygon.add(v.pos);

After Change


            }

            if (ti != tj && (ti != 0 && tj != 0)/*spanning*/) {
                PlaneIntersection pI = computePlaneIntersection(cutPlane, vi.pos, vj.pos.minus(vi.pos), EPS);

                if (pI.type != PlaneIntersection.IntersectionType.NON_PARALLEL) {
                    throw new RuntimeException("I need help (3)!");